package com.lhd.action.chain;

/**
 * @Author: liuhd
 * @Date: 2024/12/17 19:44
 * @Description:
 */
public class ConcreteHandlerB extends Handler {
    public ConcreteHandlerB(Handler handler){
        this.handler = handler;
    }
    @Override
    public void handleRequest(int param) {
        if (param == 2){
            System.out.println("B处理");
        }else {
            System.out.println("B处理不了");
        }
    }
}
